package com.service.business.conversion.controller.req;

import com.service.dao.enums.CoinsEnum;
import lombok.*;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * <dl>
 * <dt>back-end</dt>
 * <dd>Description:</dd>
 * <dd>Copyright: Copyright (C) 2015</dd>
 * <dd>Company: </dd>
 * <dd>CreateDate: 2019年12月12日</dd>
 * </dl>
 *
 * @author
 */

@Setter
@Getter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ConversionReq {


    @NotNull(message = "args_conversion_num_not_empty")
    @Positive(message = "args_conversion_num_positive")
    private BigDecimal num;

    private CoinsEnum coins;

    @NotNull(message = "args_empty_safety_pwd")
    private String safetyPwd;

    private String convertAddress;

}
